package com.libinshen.wxpay.videoAliBaBa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.libinshen.wxpay.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author lbs
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("edu_course")
@ApiModel(value = "Course对象", description = "课程")
public class Course extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程讲师id")
    private String teacherId;

    @ApiModelProperty("课程专业id")
    private String subjectId;

    @ApiModelProperty("课程专业父级id")
    private String subjectParentId;

    @ApiModelProperty("课程标题")
    private String title;

    @ApiModelProperty("课程销售价格，设置为0就可免费观看")
    private BigDecimal price;

    @ApiModelProperty("总课时")
    private Integer lessonNum;

    @ApiModelProperty("课程封面图片路径")
    private String cover;

    @ApiModelProperty("销售数量")
    private Integer buyCount;

    @ApiModelProperty("浏览数量")
    private Integer viewCount;

    @ApiModelProperty("课程封面图片路径")
    private Integer version;

    @ApiModelProperty("课程状态 Draft未发布  Normal已发布")
    private Integer status;
}
